import request from '@/utils/request'

export function sysUser(params) {
  return request({
    url: '/sys/user',
    params
  })
}
export function sysUserPost(data) {
  return request({
    url: '/sys/user',
    method: 'post',
    data
  })
}
export function sysUserDelete(id) {
  return request({
    url: `/sys/user/${id}`,
    method: 'delete'
  })
}
export function sysUserBatch(data) {
  return request({
    url: '/sys/user/batch',
    method: 'post',
    data
  })
}
export function sysUserPut(data) {
  return request({
    url: `/sys/user/${data.id}`,
    method: 'put',
    data
  })
}
